import  markdown
import os
class MarkDown():
    def __init__(self,text):
        print(text)
        self.readdir()
        self.text=text
    def convert(self):
        html=markdown.markdown(self.text)
        return html
    def readdir(self):
        path=r'../jk'
        for filename in os.listdir(path):
            print(os.path.join(path,filename))
            # print( filename.split('-'))

if __name__ == '__main__':
    MarkDown('text')